package com.hujifang.elasticsearch.service.exception;

public class ElasticException extends RuntimeException {
	private static final long serialVersionUID = -5016362827189051832L;

	private String code;

	public ElasticException(String msg) {
		super(msg);
	}

	public ElasticException(String msg, Throwable t) {
		super(msg, t);
		setStackTrace(t.getStackTrace());
	}

	public ElasticException(String code, String msg) {
		super(msg);
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}